package us.mooresr.webtroopmanager.client.events;


import com.google.gwt.event.shared.GwtEvent;

public class EventDeletedEvent extends GwtEvent<EventDeletedHandler> {
	private final Long deletedId;
	public static final Type<EventDeletedHandler> TYPE = new Type<EventDeletedHandler>();
	
	public EventDeletedEvent(long deletedId) {
		super();
		this.deletedId = deletedId;
	}
	
	public Long getDeletedId() {
		return deletedId;
	}

	@Override
	protected void dispatch(EventDeletedHandler handler) {
		handler.onDeleteEvent(this);
		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<EventDeletedHandler> getAssociatedType() {
		return TYPE;
	}

}
